﻿#include "stdafx.h"
#include "../include/SkinTool.h"
#include "../include/InitSKinTK.h"

//CInitSKinTK m_skinInit;
#define m_skinInit (CInitSKinTK::GetInitskin())

BOOL  __stdcall SkinInit()
{
	return TRUE;
}
BOOL  __stdcall SkinExit()
{
	m_skinInit.UnInstallSkin();
	return TRUE;
}

BOOL  __stdcall SkinLoadFileSkin(LPCTSTR lpszFileName)
{
	m_skinInit.InstallSkin(lpszFileName);
	return TRUE;
}
BOOL  __stdcall SkinLoadMemSkin(HMODULE hModule, LPCTSTR lpName, LPCTSTR lpType)
{
    m_skinInit.InstallSkin(hModule, lpName, lpType);
    return TRUE;
}
void  __stdcall SkinModifyHue(int nPercent)
{
	m_skinInit.ModifyHue(nPercent);
}

void  __stdcall SetWindowSkin( HWND hWnd)
{
	m_skinInit.HookWindow(hWnd);
}

void  __stdcall RemoveWindowSkin( HWND hWnd )
{
	m_skinInit.RemoveWnd(hWnd);
}

AlwaysExports BOOL  __stdcall SkinChangeSkin( LPCTSTR lpszFileName )
{
    m_skinInit.ChangeSkin(lpszFileName);
    return TRUE;
}